package domain;

import java.util.List;

public class Boss {
    private String name;
    private String account;
    List<Employee> employees;

    public Boss() {
    }

    public Boss(String name, String account, List<Employee> employees) {
        this.name = name;
        this.account = account;
        this.employees = employees;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public List<Employee> getEmployees() {
        return employees;
    }

    public void setEmployees(List<Employee> employees) {
        this.employees = employees;
    }

    @Override
    public String toString() {
        return "Boss{" +
                "name='" + name + '\'' +
                ", account='" + account + '\'' +
                ", employees=" + (employees==null?employees:employees.toString()) +
                '}';
    }
}
